import java.util.Scanner;

public class HJ4 {//字符串分隔
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str=in.nextLine();
        int n = str.length();
        int a=0;
        while (a<n){
            String eightChars;
            if (a + 8 <= n) {
                eightChars = str.substring(a, a + 8);
            } else {
                // 如果剩余字符不足 8 个，截取到字符串末尾
                eightChars = str.substring(a);
            }
            StringBuilder sb = new StringBuilder(eightChars);
            while (sb.length()<8){
                sb.append('0');//对不足8位的在字符串后补0
            }
            System.out.println(sb.toString());
            // 移动到下一组 8 个字符
            a += 8;
        }
    }
}
